<template>
	<div class="goods-hot">
		<div class="one">
			<h3>24小时热销榜</h3>
			<div class="goods-item">
				<RouterLink :to="'/goods?id=' + i.id" tag="li" v-for="i in hotlist11" :key="i.id">
					<img src="" v-lazy="i.picture" alt="" />
					<p class="name ellipsis">{{ i.name }}</p>
					<p class="desc ellipsis">{{ i.desc }}</p>
					<p class="price">&yen;{{ i.price }}</p>
				</RouterLink>
			</div>
		</div>
		<div class="two">
			<h3>周热销榜</h3>
			<div class="goods-item">
				<RouterLink :to="'/goods?id=' + i.id" tag="li" v-for="i in hotlist22" :key="i.id">
					<img src="" v-lazy="i.picture" alt="" />
					<p class="name ellipsis">{{ i.name }}</p>
					<p class="desc ellipsis">{{ i.desc }}</p>
					<p class="price">&yen;{{ i.price }}</p>
				</RouterLink>
			</div>
		</div>
	</div>
</template>
<script>
// import Goodsitem from "@/components/utils/GoodsItem.vue";
export default {
	// components: { Goodsitem },
	props: ["hotlist11", "hotlist22"],
};
</script>
<style lang="scss" scoped>
.goods-item {
	display: block;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	background-color: transparent !important;
}
li {
	width: 100%;
	height: 340px;
	background-color: rgb(255, 255, 255);
	padding: 20px 30px;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	justify-content: space-around;
	align-items: center;
	margin-bottom: 20px;
	margin-top: 20px;
}
img {
	width: 160px;
	height: 160px;
}
p {
	width: 100%;
	padding-top: 10px;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	text-align: center;
}
.name {
	font-size: 16px;
}
.desc {
	color: #999;
	height: 29px;
}
.price {
	color: red;
	font-size: 20px;
}
.da1 {
	width: 100%;
}
.goods-hot {
	width: 100%;
	h3 {
		height: 70px;
		background: #e26237;
		color: #fff;
		font-size: 18px;
		line-height: 70px;
		padding-left: 25px;
		margin-bottom: 10px;
		font-weight: normal;
	}
	::v-deep .goods-item {
		background-color: #fff;
		width: 100%;
		margin-bottom: 10px;
		img {
			width: 200px;
			height: 200px;
		}
		p {
			margin: 0 10px;
		}
		&:hover {
			transform: none;
			box-shadow: none;
		}
	}
}
.router-link-active {
	padding: 20px 10px !important;
	margin-top: 20px;
}
</style>
